package valueobjects;


public class Artikel {

	
		protected String atkID;
		protected String atkName;
		protected float atkPreis;
		protected int atkMenge;
		protected boolean atkVerfuegbar;


		
	/*	public Artikel(String id, String name, float preis,int menge, boolean verfuegbar){
			this.atkID = id;
			this.atkName = name;
			this.atkPreis = preis;
			this.atkMenge = menge;
			this.atkVerfuegbar = verfuegbar;
		}
*/
		
		
		public Artikel(String id, String name, float preis,int menge){
			this.atkID = id;
			this.atkName = name;
			this.atkPreis = preis;
			this.atkMenge = menge;
		}
		
		
		
//--------------------------------------------------------------------------------------------------------------
//------------------------------get-set-Methoden----------------------------------------------------------------
//--------------------------------------------------------------------------------------------------------------
		

		public String getID(){
			return atkID;
		}
		
		public void setID(String neuID){
			this.atkID = neuID;
		}
		
//------------------------
		
		public String getName(){
			return atkName;
		}
		
		public void setName(String neuName){
			this.atkName = neuName;
		}

//------------------------
		
		public float getPreis(){
			return atkPreis;
		}
		
		public void setPreis(float neuPreis){
			this.atkPreis = neuPreis;
		}
	
//-----------------------
		
		public int getMenge(){
			return atkMenge;
		}
		
		public void setMenge(int neuMenge){
			this.atkMenge = neuMenge;
		}
		
//-----------------------warenlog
		

		
		
		
//-----------------------
		
		public boolean isverfuegbar(){
			return atkVerfuegbar;
		}
		
//-----------------------
		
		public String toString(){
			return ("ID: "+ atkID+"; Name: "+atkName+"; Preis: "+atkPreis+"; Auf lager: "+atkMenge);
		}
		
		public boolean equals(Object obj) {
			if (obj instanceof Artikel) {
				if (this.atkID == ((Artikel)obj).atkID)
					return true;
			}
			return false;
		}
		
		
		
		
}
